import request from '@/utils/request'

// 柜机-分页查询
export function searchPageList(query, data) {
    return request({
        url: '/device/cabinet/search-page/list',
        method: 'post',
        params: query,
        data: data
    })
}
// 柜机-保存或更新
export function save(data) {
    return request({
        url: '/device/cabinet/save',
        method: 'post',
        data: data
    })
}

// 柜机-获取详细信息
export function getDetailById(id) {
    return request({
        url: '/device/cabinet/{id}'.replace(/{id}/, id),
        method: 'get',
    })
}

// 柜机-删除
export function deleteByIds(ids) {
    return request({
        url: '/device/cabinet/delete/{ids}'.replace(/{ids}/, ids),
        method: 'delete',
    })
}